import { System } from "../global.slint";

export component SettingPage inherits Rectangle{
    width: System.screen_width;
    height: System.screen_height;
    background: white;

    property <length> pos_x:0px;
    text:=Text {
        x:pos_x;
        text: "{}这里是设置页面aaaadfsadfsdf";
        font-size: 40px;
        font-weight: 999;
    }

    Timer {
        running: true;
        interval: 50ms;
        triggered => {

            if(pos_x < System.screen_width - text.width){
                pos_x = System.screen_width;
            }else{
                pos_x -= 1px;
            }
        }
    }

}